package com.chen.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chen.springboot.entity.RefundOrder;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * @Author: Chen
 * @Date: 2024/3/2  16:01
 */
public interface RefundOrderMapper extends BaseMapper<RefundOrder> {

    // 更改订单状态
    @Update("update t_order set state = #{state} where order_no = #{orderNo}")
    int updateRefundState(@Param("state")int state, @Param("orderNo") String orderNo);

}
